import http from "../utils/request.js";

//添加角色(仅root有权限)
export const addRole = (roleid,token)=>http.post("/permission/addrole",{
    roleid:roleid,
    token:token
})

// 获取角色列表
export const getRoleList = (token)=>http.get("/permission/getrole",{
    params:{
        token:token
    }
})
//获取权限菜单
export const getRoleMenu = ()=>http.get("/permission/getrole")


